﻿using System.Web.Mvc;

namespace Proggy.Web.Cms.Core.AreaReg
{
    public class ProggyCoreAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "ProggyCore";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            /*context.MapRoute(
                "ProggyCore_DragAndDrop",
                "ProggyCore/DragAndDrop/{action}",
                new { controller = "DragAndDrop", action = "Index" },
                new string[] { "Proggy.Web.Cms.Core.Controllers.PropertyTypes" }
            );*/

            context.MapRoute(
                "ProggyCore_default",
                "ProggyCore/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                new string[] { 
                    "Proggy.Web.Cms.Core.Controllers",
                    "Proggy.Web.Cms.Core.Controllers.ContentModel", 
                    "Proggy.Web.Cms.Core.Controllers.PropertyType" 
                }
            );
        }
    }
}
